<template>
  <div>
    <el-form-item :label="label">
    <el-select v-model="aliveValue" placeholder="请选择" @change="changeValue">
      <el-option :label="item.title" :value="item.id" v-for="item in list">
      </el-option>
    </el-select>
    </el-form-item>
  </div>
</template>
<script>
  export default {
    name: 'ttSelect',
    data() {
      return {
        aliveValue: this.value,
      };
    },
    props: {
      value: [String, Number],
      list:[Array],
      label: [String],
    },
    mounted() {
    },
    computed: {},
    watch: {},
    methods: {
      changeValue(val){
        this.$emit('input', val);
      }
    }
  };
</script>
